package com.dfy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("spots")
public class Spot {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String name;
    private String description;
    private String location;
    private BigDecimal price;
    private BigDecimal rating;
    private String type;
    
    @TableField("image_urls")
    private String imageUrls;
    
    @TableField("tags")
    private String tags;
    
    @TableField("opening_hours")
    private String openingHours;
    
    @TableField("contact_phone")
    private String contactPhone;
    
    @TableField("position_left")
    private String positionLeft;
    
    @TableField("position_top")
    private String positionTop;
    
    @TableField("category_type")
    private String categoryType;
    
    private String status;
    
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    @TableField("updated_at")
    private LocalDateTime updatedAt;
    
    @TableField(exist = false)
    private String spotDetail;
} 